package com.marco.ipdata.domain;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * ChinaIP.java
 * Create on 2017/3/27
 * Copyright(c) JD Inc 2017. All Rights Reserved.
 * <pre>
 * 功能说明：
 * </pre>
 */
@Table(name = "china_lastest_ip")
public class ChinaIP implements Serializable {
    private static final long serialVersionUID = 1114716116257571121L;
    @Id
    //数值型IP
    private Long id;
    //字符串型IP
    private String ip;
    private Date updateDateTime;

    public ChinaIP(Long id, String ip) {
        this.id = id;
        this.ip = ip;
        this.updateDateTime = new Date();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Date getUpdateDateTime() {
        return updateDateTime;
    }

    public void setUpdateDateTime(Date updateDateTime) {
        this.updateDateTime = updateDateTime;
    }
}
